

public class Jumpingdemo
{
    public static void main(String[] args){
    JumpingOp a = new JumpingOp();
    Jumping j = new Cat();
    a.op(j);
    a.op(new Jumping(){
        public void jump(){
        System.out.println("dog jump");
        }
    
    });
    
    }
}
